// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file HandMessage.h
 * This header file contains the declaration of the described types in the IDL file.
 *
 * This file was generated by the tool fastddsgen.
 */

#ifndef _FAST_DDS_GENERATED_HANDMESSAGE_H_
#define _FAST_DDS_GENERATED_HANDMESSAGE_H_

#include <array>
#include <bitset>
#include <cstdint>
#include <map>
#include <string>
#include <vector>

#include <fastcdr/cdr/fixed_size_string.hpp>
#include <fastcdr/xcdr/external.hpp>
#include <fastcdr/xcdr/optional.hpp>



#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define eProsima_user_DllExport
#endif  // _WIN32

#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(HANDMESSAGE_SOURCE)
#define HANDMESSAGE_DllAPI __declspec( dllexport )
#else
#define HANDMESSAGE_DllAPI __declspec( dllimport )
#endif // HANDMESSAGE_SOURCE
#else
#define HANDMESSAGE_DllAPI
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define HANDMESSAGE_DllAPI
#endif // _WIN32

namespace eprosima {
namespace fastcdr {
class Cdr;
class CdrSizeCalculator;
} // namespace fastcdr
} // namespace eprosima



//public ref class HandMessageWrapper {
//public:
//    HandMessageWrapper(){
//		hello_ = new HandMessage();
//	}
//    HandMessage *hello_;
//};



/*!
 * @brief This class represents the structure HandMessage defined by the user in the IDL file.
 * @ingroup HandMessage
 */
class HandMessage
{
public:

    /*!
     * @brief Default constructor.
     */
    eProsima_user_DllExport HandMessage();

    /*!
     * @brief Default destructor.
     */
    eProsima_user_DllExport ~HandMessage();

    /*!
     * @brief Copy constructor.
     * @param x Reference to the object HandMessage that will be copied.
     */
    eProsima_user_DllExport HandMessage(
            const HandMessage& x);

    /*!
     * @brief Move constructor.
     * @param x Reference to the object HandMessage that will be copied.
     */
    eProsima_user_DllExport HandMessage(
            HandMessage&& x) noexcept;

    /*!
     * @brief Copy assignment.
     * @param x Reference to the object HandMessage that will be copied.
     */
    eProsima_user_DllExport HandMessage& operator =(
            const HandMessage& x);

    /*!
     * @brief Move assignment.
     * @param x Reference to the object HandMessage that will be copied.
     */
    eProsima_user_DllExport HandMessage& operator =(
            HandMessage&& x) noexcept;

    /*!
     * @brief Comparison operator.
     * @param x HandMessage object to compare.
     */
    eProsima_user_DllExport bool operator ==(
            const HandMessage& x) const;

    /*!
     * @brief Comparison operator.
     * @param x HandMessage object to compare.
     */
    eProsima_user_DllExport bool operator !=(
            const HandMessage& x) const;

    /*!
     * @brief This function copies the value in member timestamp
     * @param _timestamp New value to be copied in member timestamp
     */
    eProsima_user_DllExport void timestamp(
            const std::string& _timestamp);

    /*!
     * @brief This function moves the value in member timestamp
     * @param _timestamp New value to be moved in member timestamp
     */
    eProsima_user_DllExport void timestamp(
            std::string&& _timestamp);

    /*!
     * @brief This function returns a constant reference to member timestamp
     * @return Constant reference to member timestamp
     */
    eProsima_user_DllExport const std::string& timestamp() const;

    /*!
     * @brief This function returns a reference to member timestamp
     * @return Reference to member timestamp
     */
    eProsima_user_DllExport std::string& timestamp();


    /*!
     * @brief This function copies the value in member det_valid
     * @param _det_valid New value to be copied in member det_valid
     */
    eProsima_user_DllExport void det_valid(
            const std::array<uint8_t, 2>& _det_valid);

    /*!
     * @brief This function moves the value in member det_valid
     * @param _det_valid New value to be moved in member det_valid
     */
    eProsima_user_DllExport void det_valid(
            std::array<uint8_t, 2>&& _det_valid);

    /*!
     * @brief This function returns a constant reference to member det_valid
     * @return Constant reference to member det_valid
     */
    eProsima_user_DllExport const std::array<uint8_t, 2>& det_valid() const;

    /*!
     * @brief This function returns a reference to member det_valid
     * @return Reference to member det_valid
     */
    eProsima_user_DllExport std::array<uint8_t, 2>& det_valid();


    /*!
     * @brief This function copies the value in member warning
     * @param _warning New value to be copied in member warning
     */
    eProsima_user_DllExport void warning(
            const std::array<uint8_t, 2>& _warning);

    /*!
     * @brief This function moves the value in member warning
     * @param _warning New value to be moved in member warning
     */
    eProsima_user_DllExport void warning(
            std::array<uint8_t, 2>&& _warning);

    /*!
     * @brief This function returns a constant reference to member warning
     * @return Constant reference to member warning
     */
    eProsima_user_DllExport const std::array<uint8_t, 2>& warning() const;

    /*!
     * @brief This function returns a reference to member warning
     * @return Reference to member warning
     */
    eProsima_user_DllExport std::array<uint8_t, 2>& warning();


    /*!
     * @brief This function copies the value in member joints_l
     * @param _joints_l New value to be copied in member joints_l
     */
    eProsima_user_DllExport void joints_l(
            const std::array<std::array<float, 3>, 21>& _joints_l);

    /*!
     * @brief This function moves the value in member joints_l
     * @param _joints_l New value to be moved in member joints_l
     */
    eProsima_user_DllExport void joints_l(
            std::array<std::array<float, 3>, 21>&& _joints_l);

    /*!
     * @brief This function returns a constant reference to member joints_l
     * @return Constant reference to member joints_l
     */
    eProsima_user_DllExport const std::array<std::array<float, 3>, 21>& joints_l() const;

    /*!
     * @brief This function returns a reference to member joints_l
     * @return Reference to member joints_l
     */
    eProsima_user_DllExport std::array<std::array<float, 3>, 21>& joints_l();


    /*!
     * @brief This function copies the value in member joints3d_l
     * @param _joints3d_l New value to be copied in member joints3d_l
     */
    eProsima_user_DllExport void joints3d_l(
            const std::array<std::array<float, 3>, 21>& _joints3d_l);

    /*!
     * @brief This function moves the value in member joints3d_l
     * @param _joints3d_l New value to be moved in member joints3d_l
     */
    eProsima_user_DllExport void joints3d_l(
            std::array<std::array<float, 3>, 21>&& _joints3d_l);

    /*!
     * @brief This function returns a constant reference to member joints3d_l
     * @return Constant reference to member joints3d_l
     */
    eProsima_user_DllExport const std::array<std::array<float, 3>, 21>& joints3d_l() const;

    /*!
     * @brief This function returns a reference to member joints3d_l
     * @return Reference to member joints3d_l
     */
    eProsima_user_DllExport std::array<std::array<float, 3>, 21>& joints3d_l();


    /*!
     * @brief This function copies the value in member verts3d_l
     * @param _verts3d_l New value to be copied in member verts3d_l
     */
    eProsima_user_DllExport void verts3d_l(
            const std::array<std::array<float, 3>, 778>& _verts3d_l);

    /*!
     * @brief This function moves the value in member verts3d_l
     * @param _verts3d_l New value to be moved in member verts3d_l
     */
    eProsima_user_DllExport void verts3d_l(
            std::array<std::array<float, 3>, 778>&& _verts3d_l);

    /*!
     * @brief This function returns a constant reference to member verts3d_l
     * @return Constant reference to member verts3d_l
     */
    eProsima_user_DllExport const std::array<std::array<float, 3>, 778>& verts3d_l() const;

    /*!
     * @brief This function returns a reference to member verts3d_l
     * @return Reference to member verts3d_l
     */
    eProsima_user_DllExport std::array<std::array<float, 3>, 778>& verts3d_l();


    /*!
     * @brief This function copies the value in member joints_r
     * @param _joints_r New value to be copied in member joints_r
     */
    eProsima_user_DllExport void joints_r(
            const std::array<std::array<float, 3>, 21>& _joints_r);

    /*!
     * @brief This function moves the value in member joints_r
     * @param _joints_r New value to be moved in member joints_r
     */
    eProsima_user_DllExport void joints_r(
            std::array<std::array<float, 3>, 21>&& _joints_r);

    /*!
     * @brief This function returns a constant reference to member joints_r
     * @return Constant reference to member joints_r
     */
    eProsima_user_DllExport const std::array<std::array<float, 3>, 21>& joints_r() const;

    /*!
     * @brief This function returns a reference to member joints_r
     * @return Reference to member joints_r
     */
    eProsima_user_DllExport std::array<std::array<float, 3>, 21>& joints_r();


    /*!
     * @brief This function copies the value in member joints3d_r
     * @param _joints3d_r New value to be copied in member joints3d_r
     */
    eProsima_user_DllExport void joints3d_r(
            const std::array<std::array<float, 3>, 21>& _joints3d_r);

    /*!
     * @brief This function moves the value in member joints3d_r
     * @param _joints3d_r New value to be moved in member joints3d_r
     */
    eProsima_user_DllExport void joints3d_r(
            std::array<std::array<float, 3>, 21>&& _joints3d_r);

    /*!
     * @brief This function returns a constant reference to member joints3d_r
     * @return Constant reference to member joints3d_r
     */
    eProsima_user_DllExport const std::array<std::array<float, 3>, 21>& joints3d_r() const;

    /*!
     * @brief This function returns a reference to member joints3d_r
     * @return Reference to member joints3d_r
     */
    eProsima_user_DllExport std::array<std::array<float, 3>, 21>& joints3d_r();


    /*!
     * @brief This function copies the value in member verts3d_r
     * @param _verts3d_r New value to be copied in member verts3d_r
     */
    eProsima_user_DllExport void verts3d_r(
            const std::array<std::array<float, 3>, 778>& _verts3d_r);

    /*!
     * @brief This function moves the value in member verts3d_r
     * @param _verts3d_r New value to be moved in member verts3d_r
     */
    eProsima_user_DllExport void verts3d_r(
            std::array<std::array<float, 3>, 778>&& _verts3d_r);

    /*!
     * @brief This function returns a constant reference to member verts3d_r
     * @return Constant reference to member verts3d_r
     */
    eProsima_user_DllExport const std::array<std::array<float, 3>, 778>& verts3d_r() const;

    /*!
     * @brief This function returns a reference to member verts3d_r
     * @return Reference to member verts3d_r
     */
    eProsima_user_DllExport std::array<std::array<float, 3>, 778>& verts3d_r();

private:

    std::string m_timestamp;
    std::array<uint8_t, 2> m_det_valid{0};
    std::array<uint8_t, 2> m_warning{0};
    std::array<std::array<float, 3>, 21> m_joints_l{ {{0.0}} };
    std::array<std::array<float, 3>, 21> m_joints3d_l{ {{0.0}} };
    std::array<std::array<float, 3>, 778> m_verts3d_l{ {{0.0}} };
    std::array<std::array<float, 3>, 21> m_joints_r{ {{0.0}} };
    std::array<std::array<float, 3>, 21> m_joints3d_r{ {{0.0}} };
    std::array<std::array<float, 3>, 778> m_verts3d_r{ {{0.0}} };

};

#endif // _FAST_DDS_GENERATED_HANDMESSAGE_H_



